package tyk;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import tyk.config.SpringConfig;
import tyk.service.AccountService;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);
        System.out.println( "Hello World!" );
        logger.info("UserServiceImpl:调用UserDao的getUserByID()方法");
        System.out.println("-------------------------");
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        AccountService accountService = context.getBean(AccountService.class);
        try {
            accountService.transfer(2023001,2023002,1000);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
